package com.hgz.utilspackage.pojo;

/**
 * @author 小志
 * @date 2024/12/9 - 14:55
 */
public class ResponseData {
    private Integer code;
    private String message;
    private String type;
    private Object data;

    public ResponseData(Integer code, String message, String type, Object data) {
        this.code = code;
        this.message = message;
        this.type = type;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("{");
        sb.append("\"code\" : \"").append(code).append('\"');
        sb.append(",\"message\" : \"").append(message).append('\"');
        sb.append(",\"type\" : \"").append(type).append('\"');
        sb.append(",\"data\" : \"").append(data).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
